<template>
  <div class="CrumvBox">
    <template v-for="(item, index) in arr">
      <a :href="item.link" :key="index"> {{ item.name }} </a>
      {{ index &lt; arr.length - 1 ? "/" : "" }}
      <!-- <i v-if="index < arr.length - 1">/</i> -->
    </template>
  </div>
</template>

<script>
export default {
  props: ["arr"],
};
</script>

<style lang="less" scoped>
.CrumvBox {
  line-height: 40px;
}
</style>